package com.fang.networkdisk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fang.common.common.CommonPage;
import com.fang.networkdisk.entity.bo.ReqPathPermitRelationBo;
import com.fang.networkdisk.entity.po.TbNetDisReqPathPermitRelation;

/**
 * <p>
 * 路径权限关联表,当一个接口需要多个权限的时候需要此表。与gateway_request_path表联合使用 服务类
 * </p>
 *
 * @author Bernie_fang
 * @since 2024-12-07
 */
public interface TbNetDisReqPathPermitRelationService extends IService<TbNetDisReqPathPermitRelation> {

    CommonPage queryReqPathPermitRelation(ReqPathPermitRelationBo reqPathPermitRelationBo);

    TbNetDisReqPathPermitRelation findReqPathPermitRelationByUrlIdPermissionId(Integer urlId, Integer permissionId);

    int addReqPathPermitRelation(ReqPathPermitRelationBo reqPathPermitRelationBo);

    int updateReqPathPermitRelationById(ReqPathPermitRelationBo reqPathPermitRelationBo);

    int deleteReqPathPermitRelationById(Integer id, String authorId);

}
